
<%@ page import="website.Apartment" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'apartment.label', default: 'Apartment')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-apartment" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-apartment" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list apartment">
			
				<g:if test="${apartmentInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="apartment.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${apartmentInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.descript}">
				<li class="fieldcontain">
					<span id="descript-label" class="property-label"><g:message code="apartment.descript.label" default="Descript" /></span>
					
						<span class="property-value" aria-labelledby="descript-label"><g:fieldValue bean="${apartmentInstance}" field="descript"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.dim}">
				<li class="fieldcontain">
					<span id="dim-label" class="property-label"><g:message code="apartment.dim.label" default="Dim" /></span>
					
						<span class="property-value" aria-labelledby="dim-label"><g:fieldValue bean="${apartmentInstance}" field="dim"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.floor}">
				<li class="fieldcontain">
					<span id="floor-label" class="property-label"><g:message code="apartment.floor.label" default="Floor" /></span>
					
						<span class="property-value" aria-labelledby="floor-label"><g:fieldValue bean="${apartmentInstance}" field="floor"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.location}">
				<li class="fieldcontain">
					<span id="location-label" class="property-label"><g:message code="apartment.location.label" default="Location" /></span>
					
						<span class="property-value" aria-labelledby="location-label"><g:fieldValue bean="${apartmentInstance}" field="location"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.max_people}">
				<li class="fieldcontain">
					<span id="max_people-label" class="property-label"><g:message code="apartment.max_people.label" default="Maxpeople" /></span>
					
						<span class="property-value" aria-labelledby="max_people-label"><g:fieldValue bean="${apartmentInstance}" field="max_people"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.min_people}">
				<li class="fieldcontain">
					<span id="min_people-label" class="property-label"><g:message code="apartment.min_people.label" default="Minpeople" /></span>
					
						<span class="property-value" aria-labelledby="min_people-label"><g:fieldValue bean="${apartmentInstance}" field="min_people"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.pricelist}">
				<li class="fieldcontain">
					<span id="pricelist-label" class="property-label"><g:message code="apartment.pricelist.label" default="Pricelist" /></span>
					
						<span class="property-value" aria-labelledby="pricelist-label"><g:link controller="price" action="show" id="${apartmentInstance?.pricelist?.id}">${apartmentInstance?.pricelist?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.reservations}">
				<li class="fieldcontain">
					<span id="reservations-label" class="property-label"><g:message code="apartment.reservations.label" default="Reservations" /></span>
					
						<g:each in="${apartmentInstance.reservations}" var="r">
						<span class="property-value" aria-labelledby="reservations-label"><g:link controller="reservation" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${apartmentInstance?.reviews}">
				<li class="fieldcontain">
					<span id="reviews-label" class="property-label"><g:message code="apartment.reviews.label" default="Reviews" /></span>
					
						<g:each in="${apartmentInstance.reviews}" var="r">
						<span class="property-value" aria-labelledby="reviews-label"><g:link controller="review" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${apartmentInstance?.id}" />
					<g:link class="edit" action="edit" id="${apartmentInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
